package com.cpi.cornpp.bushelprice.form;

import java.util.Calendar;

import org.apache.struts.action.ActionForm;

import com.cpi.cornpp.bushelprice.view.BushelPriceView;
/**
 * Bushel Price Action Form
 * 
 * @author Edgar Joao
 *
 */
public class BushelPriceForm extends ActionForm{

	/** Serial Version ID*/
	private static final long serialVersionUID = 6542071995332415175L;
	
	private BushelPriceView bushelPriceView;
	private int orderField;
	private int orderType;
	/*private String initDate;
	private String endDate;*/
	
	public BushelPriceForm() {
		bushelPriceView = new BushelPriceView();				
		
		//Establecemos un rango de fecha inicial y final
	    Calendar startDate = Calendar.getInstance(); 
	    Calendar endDate = Calendar.getInstance();
	    
	    startDate.set(Calendar.DATE, 1);      
	    endDate.add(Calendar.MONTH, 1);      
	    endDate.set(Calendar.DATE, 1); 
	    endDate.add(Calendar.DATE, -1);
	    
	    //this.initDate = sdf.format(startDate.getTime());
	    //this.endDate  = sdf.format(endDate.getTime());
	}

	public BushelPriceView getBushelPriceView() {
		return bushelPriceView;
	}

	public void setBushelPriceView(BushelPriceView argBushelPriceView) {
		bushelPriceView = argBushelPriceView;
	}

	public int getOrderField() {
		return orderField;
	}

	public void setOrderField(int argOrderField) {
		orderField = argOrderField;
	}

	public int getOrderType() {
		return orderType;
	}

	public void setOrderType(int argOrderType) {
		orderType = argOrderType;
	}

	/*public String getInitDate() {
		return initDate;
	}

	public void setInitDate(String argInitDate) {
		initDate = argInitDate;
	}

	public String getEndDate() {
		return endDate;
	}

	public void setEndDate(String argEndDate) {
		endDate = argEndDate;
	}*/
		
}
